<?php
/**
 * Class that operate on table 'bible_book_names'. Database Mysql.
 *
 * @author: http://phpdao.com
 * @date: 2012-11-21 10:54
 */
class BibleBookNamesMySqlExtDAO extends BibleBookNamesMySqlDAO{

    public function getAllBooksForSelection($language){
        $books = this::queryByLanguage($language);
        $ret = array();
        for($i=0;$i<count($books);$i++){
            $ret0 = array();
            $ret0[0] = $books[$i]->bookNo;
            $ret0[1] = $books[$i]->middleName;
            $ret[$i] = $ret0;
        }
        return $ret;

    }
}
?>